package org.lc.cmd.plugin.scan;

import org.lc.cmd.ResultHandler;
import org.lc.cmd.util.CmdOutUtil;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 最终的处理类
 */
@Component
@Order
public class LastResultHandler implements ResultHandler {
    @Override
    public Object handle(Object result, String line) {
        CmdOutUtil.write(result.toString(), false);
        return null;
    }
}
